#!/bin/bash

if [[ $(id -u) != 0 ]]; then
    echo "Please run as root or use sudo"
    exit 1
fi

apt-get install -y cockpit cockpit-machines cockpit-networkmanager
# cockpit need, for network activation
# sudo apt install dnsmasq

# 共享主机目录
apt-get install -y virtiofsd  # Debian/Ubuntu
